class CreateEditions < ActiveRecord::Migration
  def self.up
    create_table :editions do |t|
      t.string :title, :null => false
      t.text :info
      t.string :catalogID
      t.string :format
      t.integer :day
      t.integer :month
      t.integer :year
      t.integer :release_id, :null => false
      t.integer :label_id
      t.integer :place_id

      t.timestamps
    end
  end

  def self.down
    drop_table :editions
  end
end
